<?php

namespace App\Http\Requests\Frontend\V10\Users;

use Illuminate\Foundation\Http\FormRequest;

class UserChooseCreditCardStoreRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'bank_card_id'=>'required|integer',
        ];
    }

    public function messages()
    {
        return [
            'bank_card_id.required'=>'缺少信用卡信息',
            'bank_card_id.integer'=>'信用卡信息不正确',
        ];
    }
}
